package com.hatuan.vnexpress;
import com.hatuan.models.NewAsyncTask;
import com.hatuan.models.RssLink;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class New_Fragment extends Fragment {
	public New_Fragment() {

	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Bundle bundle = getArguments();
		String UrlRss = bundle.getString("urlLink");
		View rootView = inflater.inflate(R.layout.fragment_new, container,
				false);
		NewAsyncTask asyncTask= new NewAsyncTask(getActivity());
		asyncTask.execute(UrlRss);
		return rootView;
	}

}
